# 4.6
# cmp python 3 已移除
import operator
import types


def cmp(a, b):
    if operator.eq(a, b):
        return 0
    elif operator.gt(a, b):
        return 1
    else:
        return -1


print(cmp(1, 1), cmp(1, 2), cmp(2, 1), cmp('abc', 'xyz'))
print(repr(...))
print(type(type(4)))
print(repr(type(type(4))))
print('[1,23]', repr([1, 23]), str([1, 23]))
print(isinstance(1, (int, float, str, complex)))
print(type(1) == int)
print(type(1) is int)
a = 123
print(super(type))
